Skip to content

src: retrieve binding data from the context#33139

Closed
addaleax wants to merge 5 commits intonodejs:masterfrom
addaleax:context-indepedent-bindings
Closed

src: retrieve binding data from the context#33139
addaleax wants to merge 5 commits intonodejs:masterfrom
addaleax:context-indepedent-bindings

Conversation

@addaleax
Copy link
Member

This is mostly taken from the common subset of #32761 and #32984, with a few modifications on top of it (notably, BindingData does not make sense as a class any longer and can be replaced by BaseObject directly).


Instead of passing them through the data bound to function
templates, store references to them in a list embedded inside
the context, and store the integer index
(which is context-independent) in the function template data.
This makes the function templates more context-independent,
and makes it possible to embed binding data in non-main contexts.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants